package cn.dgiot.fd.model;

import java.util.List;

/**
 * ota升级
 * @author
 *
 */
public class OTAModel extends BaseModel{
	
	/** 固件id */
	private String firmwareId;
	/** 当前升级包的版本号 */
	private String destVersion;	
	/** 升级包名称 */
	private String firmwareName;	
	/** 升级包url */
	private String firmwareUrl;	
	/** 升级包描述 */
	private String firmwareDesc;	
	/** 升级类型 */
	private Integer type;
	/** 文件id */
	private String fileId;
	/** 文件id */
	private List<String>targetDeviceNames;
	/** 超时时间 */
	private Integer timeoutInMinutes;
	/** 是否需要验证 */
	private boolean needToVerify;
	
	
	/** -------------升级---------------- */
	/** 升级范围 */
	private String targetSelection;
	/** 设备升级失败后，自动重试的时间间隔 */
	private Integer retryInterval;
	/** 自动重试次数 */
	private Integer retryCount;
	/** 是否覆盖之前的升级任务 */
	private Integer overwriteMode;
	
	/** -------------模块---------------- */
	/** 模块名称 */
	private String moduleName;
	/** 模块别名 */
	private String aliasName;
	/** 描述 */
	private String desc;
	
	public String getDestVersion() {
		return destVersion;
	}
	public void setDestVersion(String destVersion) {
		this.destVersion = destVersion;
	}
	public String getFirmwareName() {
		return firmwareName;
	}
	public void setFirmwareName(String firmwareName) {
		this.firmwareName = firmwareName;
	}
	public String getFirmwareUrl() {
		return firmwareUrl;
	}
	public void setFirmwareUrl(String firmwareUrl) {
		this.firmwareUrl = firmwareUrl;
	}
	public String getFirmwareDesc() {
		return firmwareDesc;
	}
	public void setFirmwareDesc(String firmwareDesc) {
		this.firmwareDesc = firmwareDesc;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public String getFileId() {
		return fileId;
	}
	public void setFileId(String fileId) {
		this.fileId = fileId;
	}
	public String getFirmwareId() {
		return firmwareId;
	}
	public void setFirmwareId(String firmwareId) {
		this.firmwareId = firmwareId;
	}
	public List<String> getTargetDeviceNames() {
		return targetDeviceNames;
	}
	public void setTargetDeviceNames(List<String> targetDeviceNames) {
		this.targetDeviceNames = targetDeviceNames;
	}
	public Integer getTimeoutInMinutes() {
		return timeoutInMinutes;
	}
	public void setTimeoutInMinutes(Integer timeoutInMinutes) {
		this.timeoutInMinutes = timeoutInMinutes;
	}
	public boolean isNeedToVerify() {
		return needToVerify;
	}
	public void setNseedToVerify(boolean needToVerify) {
		this.needToVerify = needToVerify;
	}
	public String getTargetSelection() {
		return targetSelection;
	}
	public void setTargetSelection(String targetSelection) {
		this.targetSelection = targetSelection;
	}
	public Integer getRetryInterval() {
		return retryInterval;
	}
	public void setRetryInterval(Integer retryInterval) {
		this.retryInterval = retryInterval;
	}
	public Integer getRetryCount() {
		return retryCount;
	}
	public void setRetryCount(Integer retryCount) {
		this.retryCount = retryCount;
	}
	public Integer getOverwriteMode() {
		return overwriteMode;
	}
	public void setOverwriteMode(Integer overwriteMode) {
		this.overwriteMode = overwriteMode;
	}
	public void setNeedToVerify(boolean needToVerify) {
		this.needToVerify = needToVerify;
	}
	public String getModuleName() {
		return moduleName;
	}
	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}
	public String getAliasName() {
		return aliasName;
	}
	public void setAliasName(String aliasName) {
		this.aliasName = aliasName;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}	
	
}
